package cn.hejiang.mamis.core.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.OrderBy;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
public class BaseEntity implements Serializable {
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;

	private String name;

	private Boolean deleted;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
	@OrderBy(asc = true)
	private LocalDateTime createdAt;

	private String createdBy;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
	private LocalDateTime updatedAt;

	private String updatedBy;

	private String ownSysId;

	private String ownDeptId;
}
